home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / tools / libx11.readme < prev    next >
Text File  |  1995-06-17  |  3KB  |  49 lines

  1.  
  2.   Some LibX11 info:
  3. --------------------
  4. As you may have guessed, this program uses something I have called libX11 which
  5. is a link library of X11 emulation routines. It tries to provide an easy way
  6. of making programs written for the X11 window system run on the amiga.
  7. To do this I have used a lot of different amiga functions, some of them
  8. may not bee too portable across different configurations (most notably
  9. those with gfx cards). I have been informed that some Blitter functions
  10. doesn't do too well on those gfx cards. The library uses BltPattern/
  11. BltBitMap/BltBitMapRastPort and BltMaskBitMapRastPort both for 1 plane
  12. and >1 plane bitmaps. Some functions also uses the chunky to planar routines
  13. by Morten Eriksen (it may not be the fastest but at least it is general
  14. enough to be useful!) which has been reported not to work on gfx cards.
  15. To prevent these functions from beeing used set 'setenv X11/gfxcard 1'
  16. (not all programs may use these functions!).
  17.  
  18. To handle fonts a file called AmigaDefaults (==.XDefaults) that contains
  19. information on mapping between X11 fonts and amiga fonts, has been made.
  20. (and other info when I improve upon it..environment vars are likely contenders..)
  21. It should be placed in your $HOME. (ex. 'setenv HOME dh1:')
  22.  
  23. fontmap.courier: courier.font
  24. fontmap.helvetica: helvetica.font
  25.  
  26. are valid entries into this library where the string between . and : is the
  27. substring that when it matches a requested fontname will map the font into
  28. the fontname following the colon. A program may ask for
  29. "-adobe-helvetica-medium-r-*--" and will in this case receive the helvetica.font.
  30. If you have bitmap versions of the postscript fonts you may insert them
  31. into this file! (in case you are working with xfig..) I guess it should
  32. be possible to convert those fonts into something usable on the amiga
  33. with some of those font editors.
  34.  
  35. If you don't like the cursors that the applications may choose to use
  36. you can override it with 'setenv X11/Cursors 0'. They may look ugly
  37. but are the default cursors of the X11 window system. 
  38.  
  39. If you want to run an application on a public screen most of the programs
  40. will react to a command line entry '-display PubScreen'. If it doesn't
  41. 'setenv X11/usepub PubScreen' can be used.
  42.  
  43. Some debug information can be obtained by 'setenv X11/debug 1'. Most programs
  44. also provide its own debug command line option.
  45.  
  46. To provide proper color handling a file called rgb.txt has to be placed in
  47. libs: it contains mapping between color names and rgb values. (used by
  48. XLookupColor/XParseColor and XAllocNamedColor). Also under os 3.0 pensharing
  49. is used to obtain pens.